package com.zjdiepu.www.model.base.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import javax.validation.GroupSequence;

import org.hibernate.validator.constraints.NotBlank;

import com.zjdiepu.www.base.annotation.Add;
import com.zjdiepu.www.base.annotation.Update;
/**
 * 
 * 七牛通用请求
 */
@ApiModel(value="QiniuRequest", description="七牛请求")
@GroupSequence({Add.class, Update.class, QiniuRequest.class})
public class QiniuRequest implements Serializable{
	private static final long serialVersionUID = 1L;
	/**
	 * 文件名称
	 */
	@NotBlank(message="文件名称{message.null}",groups={Add.class, Update.class})
	@ApiModelProperty(name="fileName",required=true,value="文件名称",example="asdfssdfaf322342342dfasfa.png")
	private String fileName;
	/**
	 * 文件类型
	 */
	@NotBlank(message="文件类型{message.null}",groups={Add.class})
	@ApiModelProperty(name="mediaType",required=false,value="文件类型",example="video")
	private String mediaType; 
	/**
	 * 附件ID
	 */
	@NotBlank(message="附件ID{message.null}",groups={Add.class})
	@ApiModelProperty(name="attachmentId",required=false,value="附件ID",example="asdfssdfaf322342342dfasfa")
	private String attachmentId;
	
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getMediaType() {
		return mediaType;
	}
	public void setMediaType(String mediaType) {
		this.mediaType = mediaType;
	}
	public String getAttachmentId() {
		return attachmentId;
	}
	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}
}
